package com.hao.tool.web.module.fileInfo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hao.tool.web.common.constant.LayPage;
import com.hao.tool.web.module.fileInfo.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * description
 *
 * @author RuiHaoZ on GZ.cmhk
 * @date 2019-11-22 21:45
 */
public interface FileInfoService extends IService<FileInfo> {

    LayPage<FileInfo> pageByInfo(LayPage<FileInfo> page, FileInfo fileInfo);

    FileInfo uploadAndSaveFile(MultipartFile file, String userName, String storageType) throws IOException;

    String fineMaxId();
}
